<template>
    <Swiper class="detail-swiper">
    <!-- 以上类名class别叫swiper 不然会和封装的 swiper.vue 冲突  -->
      <SwiperItem  v-for="(item,index) in topImages" :key="index">
        <img :src="item" alt="">
      </SwiperItem>
    </Swiper>
</template>

<script>
  import { Swiper, SwiperItem } from "components/common/swiper";

  export default {
    name: "DetailSwiper",
    components:{
      Swiper,
      SwiperItem
    },
    data() {
      return {
      }
    },
    props: {
      topImages: {
        type: Array,
        default(){
          return[]
        }
      },
    },
  }
</script>

<style scoped>
.detail-swiper{
  height: 300px;
  overflow: hidden;
}
</style>